package com.smartum.mpr.client.services;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
import com.smartum.mpr.shared.News;

import java.io.IOException;
import java.util.List;

/**
 */
@RemoteServiceRelativePath("newsService")
public interface NewsService extends RemoteService {

    List<News> getImages() throws IOException;

    List<News> addNews(String imageName, String title, String text) throws IOException;

    List<News> delete(String newsId) throws IOException;

    News updateNews(String newsId, String imageName, String newTitle, String newText) throws IOException;
}
